package com.hs.jhzd.entity;

import javax.persistence.*;

import java.sql.Blob;
import java.util.Date;
import java.util.Objects;

/**
 * @author guoxc
 * @date 2019/03/01
 **/
@Entity
@Table(name = "jh_jyzygl")
public class JhJyzyglEntity {
    private String zybh;
    private String mc;  //名称
    private String ms;
    private Blob nr;  //内容
    private String url;
    private String lx;
    private String zyfl;
    private Date cjsj;
    private String cjr;
    private String jsbh;
    private String jsmc;
    private Date sjc;
    private Boolean scbj;
    @Column(name = "tplj")
    private String tplj;//图片路径

    @Id
    @Column(name = "ZYBH")
    public String getZybh() {
        return zybh;
    }

    public void setZybh(String zybh) {
        this.zybh = zybh;
    }

    @Basic
    @Column(name = "MC")
    public String getMc() {
        return mc;
    }

    public void setMc(String mc) {
        this.mc = mc;
    }

    @Basic
    @Column(name = "MS")
    public String getMs() {
        return ms;
    }

    public void setMs(String ms) {
        this.ms = ms;
    }

    @Basic
    @Column(name = "NR")
    public Blob getNr() {
        return nr;
    }

    public void setNr(Blob nr) {
        this.nr = nr;
    }

    @Basic
    @Column(name = "URL")
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Basic
    @Column(name = "LX")
    public String getLx() {
        return lx;
    }

    public void setLx(String lx) {
        this.lx = lx;
    }

    @Basic
    @Column(name = "ZYFL")
    public String getZyfl() {
        return zyfl;
    }

    public void setZyfl(String zyfl) {
        this.zyfl = zyfl;
    }

    @Basic
    @Column(name = "CJSJ")
    public Date getCjsj() {
        return cjsj;
    }

    public void setCjsj(Date cjsj) {
        this.cjsj = cjsj;
    }

    @Basic
    @Column(name = "CJR")
    public String getCjr() {
        return cjr;
    }

    public void setCjr(String cjr) {
        this.cjr = cjr;
    }

    @Basic
    @Column(name = "JSBH")
    public String getJsbh() {
        return jsbh;
    }

    public void setJsbh(String jsbh) {
        this.jsbh = jsbh;
    }

    @Basic
    @Column(name = "JSMC")
    public String getJsmc() {
        return jsmc;
    }

    public void setJsmc(String jsmc) {
        this.jsmc = jsmc;
    }

    @Basic
    @Column(name = "SJC")
    public Date getSjc() {
        return sjc;
    }

    public void setSjc(Date sjc) {
        this.sjc = sjc;
    }

    @Basic
    @Column(name = "SCBJ")
    public Boolean getScbj() {
        return scbj;
    }

    public void setScbj(Boolean scbj) {
        this.scbj = scbj;
    }

    public String getTplj() {
        return tplj;
    }

    public void setTplj(String tplj) {
        this.tplj = tplj;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        JhJyzyglEntity that = (JhJyzyglEntity) o;
        return Objects.equals(zybh, that.zybh) &&
                Objects.equals(mc, that.mc) &&
                Objects.equals(ms, that.ms) &&
                Objects.equals(nr, that.nr) &&
                Objects.equals(url, that.url) &&
                Objects.equals(lx, that.lx) &&
                Objects.equals(zyfl, that.zyfl) &&
                Objects.equals(cjsj, that.cjsj) &&
                Objects.equals(cjr, that.cjr) &&
                Objects.equals(jsbh, that.jsbh) &&
                Objects.equals(jsmc, that.jsmc) &&
                Objects.equals(sjc, that.sjc) &&
                Objects.equals(scbj, that.scbj);
    }

    @Override
    public int hashCode() {
        return Objects.hash(zybh, mc, ms, nr, url, lx, zyfl, cjsj, cjr, jsbh, jsmc, sjc, scbj);
    }
}
